/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package gek.uni.diplom.uml2ecore.model._.SimleStateMachine.impl;

import gek.uni.diplom.uml2ecore.model._.SimleStateMachine.*;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EFactoryImpl;

import org.eclipse.emf.ecore.plugin.EcorePlugin;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class SimleStateMachineFactoryImpl extends EFactoryImpl implements
		SimleStateMachineFactory {
	/**
	 * Creates the default factory implementation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static SimleStateMachineFactory init() {
		try {
			SimleStateMachineFactory theSimleStateMachineFactory = (SimleStateMachineFactory) EPackage.Registry.INSTANCE
					.getEFactory("http:///_/SimleStateMachine.ecore");
			if (theSimleStateMachineFactory != null) {
				return theSimleStateMachineFactory;
			}
		} catch (Exception exception) {
			EcorePlugin.INSTANCE.log(exception);
		}
		return new SimleStateMachineFactoryImpl();
	}

	/**
	 * Creates an instance of the factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public SimleStateMachineFactoryImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EObject create(EClass eClass) {
		switch (eClass.getClassifierID()) {
		case SimleStateMachinePackage.MY_OBJECT:
			return createMyObject();
		default:
			throw new IllegalArgumentException("The class '" + eClass.getName()
					+ "' is not a valid classifier");
		}
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public MyObject createMyObject() {
		MyObjectImpl myObject = new MyObjectImpl();
		return myObject;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public SimleStateMachinePackage getSimleStateMachinePackage() {
		return (SimleStateMachinePackage) getEPackage();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @deprecated
	 * @generated
	 */
	public static SimleStateMachinePackage getPackage() {
		return SimleStateMachinePackage.eINSTANCE;
	}

} //SimleStateMachineFactoryImpl
